package wechat.service;

import wechat.entity.JSTicketEntity;
import wechat.resources.InstanceResource;

public interface JSTicketService {

	/**
	 * 获得JSTicket
	 * @param appid
	 * @return
	 * @throws Exception
	 */
	public JSTicketEntity getJSTicket(String appid) throws Exception;
	
	/**
	 * 获得JSTicket
	 * @param instanceResource
	 * @return
	 * @throws Exception
	 */
	public JSTicketEntity getJSTicket(InstanceResource instanceResource) throws Exception;
	
	/**
	 * 重置JSTicket
	 * @param appid
	 * @return
	 * @throws Exception
	 */
	public void resetJSTicket(String appid) throws Exception;

}
